package com.pactera.miyuangroup.db.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * 售货机信息修改审核状态
 *
 * @author Wangwu
 * @create 2018-04-23 下午2:03
 **/
public enum AuditStatus implements IEnum {
    WAIT(0, "等待审核"), ADOPT(1, "审核通过"), VETO(2, "审核不通过");

    private int value;
    private String desc;

    AuditStatus(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }


    @Override
    public Serializable getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc() {
        return this.desc;
    }
}
